package com.atguigu.spzx.product.client.feign;

import com.atguigu.spzx.model.common.Result;
import com.atguigu.spzx.model.entity.product.ProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * title:
 * author: zgl
 * date: 2024/1/17
 * description：
 */
@FeignClient(value = "service-product")
public interface ProductFeignClient {
    @GetMapping("/api/product/getSkuById/{skuId}")
    public Result<ProductSku> getProductList(@PathVariable Long skuId);


    @PutMapping("/api/product/updateSkuSaleNum/{skuId}/{skuNum}")
    public Result updateSkuSaleNum(@PathVariable Long skuId,@PathVariable Integer skuNum);
}
